/*
 * Singularity Engine
 * Copyright (C) 2010 Vyacheslav Vorobyov, All rights reserved.
 * See LICENSE for full license information.
 */
package org.singularity.bom;


/**
 * TODO Describe this entity!
 * @author vjache
 */
public abstract class UnaryOperator extends BooleanOperator
{
	private BooleanOperator _operand;
	/**
	 * @param aOperatorCode
	 */
	protected UnaryOperator(OpCode aOperatorCode,BooleanOperator aOperand)
	{
		super(aOperatorCode);
		_operand = aOperand;
	}
	
	public BooleanOperator getOperand()
	{
		return _operand;
	}
	public void setOperand(BooleanOperator aOperand)
	{
		_operand = aOperand;
	}
	
	@Override
	public String toString()
	{
		return String.format("%s(%s)",getOperatorCode(),getOperand());
	}

}
